﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SharpErp.Data.Common.Entity
{
    [AttributeUsage(AttributeTargets.Property)]
    public class PropDescAttribute : Attribute
    {
        public string Desc { get; set; }
        public bool OnlyShow { get; set; } = false;
    }
    public class GoodsFormulationView 
    {

        [PropDesc(Desc ="商品长    ")]
        public double GoodsLength { get; set; }

        [PropDesc(Desc ="商品高    ")]
        public double GoodsHeight { get; set; }

        [PropDesc(Desc ="商品厚    ")]
        public double GoodsThickNess { get; set; }

        [PropDesc(Desc ="商品数量  ")]
        public int GoodsCount { get; set; }

        [PropDesc(Desc ="商品面积  ")]
        public double GoodsArea { get; set; }

        [PropDesc(Desc ="商品单价  ")]
        public double GoodsSalePrice { get; set; }

        [PropDesc(Desc ="商品平米价")]
        public double GoodsAreaPrice { get; set; }

        [PropDesc(Desc ="商品金额  ")]
        public double GoodsMoeny { get; set; }
    }

    public class MaterialFormulationView
    {
        [PropDesc(Desc = "商品长    ")]
        public double CompleteLength { get; set; }

        [PropDesc(Desc = "商品高    ")]
        public double CompleteHeight { get; set; }

        [PropDesc(Desc = "商品厚    ")]
        public double CompleteWidth { get; set; }

        [PropDesc(Desc = "商品数量  ")]
        public double CompleteCount { get; set; }

        [PropDesc(Desc = "商品面积  ")]
        public double CompleteArea { get; set; }

        [PropDesc(Desc = "商品单价  ")]
        public double CompleteInPrice { get; set; }

        [PropDesc(Desc = "平米价    ")]
        public double CompleteAreaPrice { get; set; }

        [PropDesc(Desc = "商品金额  ")]
        public double CompleteMoney { get; set; }


        [PropDesc(Desc = "材料长    ")]
        public double MaterialLength { get; set; }

        [PropDesc(Desc = "材料高    ")]
        public double MaterialHeight { get; set; }

        [PropDesc(Desc = "材料厚    ")]
        public double MaterialWidth { get; set; }

        [PropDesc(Desc = "材料数量  ")]
        public double MaterialCount { get; set; }

        [PropDesc(Desc = "材料面积  ")]
        public double MaterialArea { get; set; }

        [PropDesc(Desc = "材料进价  ")]
        public double MaterialInPrice { get; set; }

        [PropDesc(Desc = "材料金额  ")]
        public double MaterialMoney { get; set; }

        [PropDesc(Desc = "废料百分比")]
        public double InvalidPencentage{ get; set; }

        [PropDesc(Desc = "废料数量  ", OnlyShow =true)]
        public double InvalidCount { get; set; }

        [PropDesc(Desc = "裁切长    ", OnlyShow = true)]
        public double CutLength { get; set; }

        [PropDesc(Desc = "长数量    ", OnlyShow = true)]
        public double LengthCount { get; set; }

        [PropDesc(Desc = "裁切高    ", OnlyShow = true)]
        public double CutHeight { get; set; }

        [PropDesc(Desc = "高数量    ", OnlyShow = true)]
        public double HeightCount { get; set; }

        [PropDesc(Desc = "裁切厚    ", OnlyShow = true)]
        public double CutWidth { get; set; }

        [PropDesc(Desc = "厚数量    ", OnlyShow = true)]
        public double WidthLength { get; set; }

        [PropDesc(Desc = "裁切数量  ", OnlyShow = true)]
        public double CutCount { get; set; }
    }
}
